//
//  Bullet.h
//  airfight
//
//  Created by aaron more on 12-8-28.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_Bullet_h
#define airfight_Bullet_h

#include "cocos2d.h"

USING_NS_CC;

class Bullet : public CCObject
{
    
protected:

    CCPoint m_pFirePoint; //发射点
    int m_pID;
    int m_pType;  //子弹轨迹类型
    int m_pDamage; //破坏值
    int m_pFrequency; //发射频率
    int m_pSpeed;  //移动速度
    float m_pDuration;  //单次移动持续时间
    std::string m_pRes; //资源
    int m_pAngle;  //发射角度
    int m_pGroup_num; //一组发射数量
    int m_pGroup_interval; //组间隔
    int m_pBegin; //发射时机
    
public:
    
    Bullet();
    virtual ~Bullet();
    
    inline CCPoint getFirePoint() { return m_pFirePoint; }
    inline void setFirePoint(int x,int y) { m_pFirePoint = CCPointMake(x,y); }
    
    
    inline int getID() { return m_pID; }
    inline void setID(int p_ID) { m_pID = p_ID; }
    
    inline int getType() { return m_pType; }
    inline void setType(int p_type) { m_pType = p_type; }
    
    inline int getDamage() { return m_pDamage; }
    inline void setDamage(int p_damage) { m_pDamage = p_damage; }
    
    inline int getFrequency() { return m_pFrequency; }
    inline void setFrequency(int p_frequency) { m_pFrequency = p_frequency; }
    
    inline int getSpeed() { return m_pSpeed; }
    inline void setSpeed(int p_speed) { m_pSpeed = p_speed; }
    
    inline float getDuration() { return m_pDuration; }
    inline void setDuration(float p_duration) { m_pDuration = p_duration; }
    
    inline std::string getRes() { return m_pRes; }
    inline void setRes(std::string p_res) { m_pRes = p_res; }
    
    inline int getAngle() { return m_pAngle; }
    inline void setAngle(int p_angle) { m_pAngle = p_angle; }

    inline int getGroup_num() { return m_pGroup_num; }
    inline void setGroup_num(int p_group_num) { m_pGroup_num = p_group_num; }
    
    inline int getGroup_interval() { return m_pGroup_interval; }
    inline void setGroup_interval(int p_group_interval) { m_pGroup_interval = p_group_interval; }
    
    inline int getBegin() { return m_pBegin; }
    inline void setBegin(int p_begin) { m_pBegin = p_begin; }
    
};


#endif
